local ClientOHOH = _G.ClientOHOH;

local M = ClientOHOH.class.new(script, ClientOHOH.files.OHOHOLYBUIBase());
local CallBackManager = ClientOHOH.load.CallBackManager();

function InitInsts(ui)
	ui.insts = {};
	ui.insts.btn ="ctrl.buyBtn"
    ui.insts.close ="ctrl.close"
    ui.insts.price ="ctrl.price"
end


function M.new(...)
	return M(...);
end;
function M.ctor(self)
	InitInsts(self)

    self.BuyEvent=_G.CommonOHOH.load.Connect().new()
	M.super.ctor(self, ClientOHOH:GetPath_Loop("ReplicatedStorage.Resource.UI.VipInfoGui"));
    CallBackManager:AddRbxConnect(self,self.insts.close.Activated, function()
        self:Hide()
	end);

    CallBackManager:AddRbxConnect(self,self.insts.btn.Activated, function()
        self.BuyEvent:Action()
	end);

end;

function M.SetPrice(self,price)
    self.insts.price.Text=price
end

function M.dtor(self)
	M.super.dtor(self);
end;


return M
